<?php if ($position == 'content_top'  or $position == 'content_bottom') { ?>
<script>
    var count = <?php echo count($newss) ?>;
</script>
<div class="box-news-left">
  <div class="box-heading"><?php echo $heading_title; ?></div>
  <div class="box-content">
      <div class="box-product-left" style="height:330px;">
      <table id="items" cellspacing="0" cellpadding="0" border="0" style="border-collapse:collapse;">
            <?php foreach ($newss as $key => $news) { ?>
            <tr>
                <td>
                    <div id="recent<?=$key?>" <?=($key>2)?'style="display: none;"':'style=""'?> style="" class="item_ex">
                            <?php if ($news['thumb']) { ?>
                            <div class="image"><a href="<?php echo $news['href']; ?>"><img src="<?php echo $news['thumb']; ?>" alt="<?php echo $news['name']; ?>" /></a></div>
                            <?php } ?>
                            <div class="name"><a href="<?php echo $news['href']; ?>"><?php echo $news['name']; ?></a></div>
            
                            <?php echo $news['description'];?>
                            <div class="clb"></div>
                    </div>
                </td>
            </tr>

            <?php } ?>
        </table>
    </div>
  </div>
</div>

 <?php } else if ($position == 'column_left' or $position == 'column_right') { ?>                            
  <div class="box-news-left">
  <div class="box-heading"><?php echo $heading_title; ?></div>
  <div class="box-content">
    <div class="box-product-left">
      <?php foreach ($newss as $news) { ?>
      <div>
        <?php if ($news['thumb']) { ?>
        <div class="image"><a href="<?php echo $news['href']; ?>"><img src="<?php echo $news['thumb']; ?>" alt="<?php echo $news['name']; ?>" /></a></div>
        <?php } ?>
        <div class="name"><a href="<?php echo $news['href']; ?>"><?php echo $news['name']; ?></a></div>

         <?php echo $news['description'];?>
        
      </div>
      <?php } ?>
    </div>
  </div>
</div>                          
      
   <?php } ?>
